# Maintainer: Thomas Böhler <witcher@wiredspace.de>
# Contributor: Thomas Böhler <witcher@wiredspace.de>
pkgname=surfraw

pkgver=2.3.0
pkgrel=0
pkgdesc="Shell Users' Revolutionary Front Rage Against the Web"
url="http://surfraw.org"
arch="noarch"
license="Public Domain"
makedepends="perl"
subpackages="$pkgname-doc"
source="https://gitlab.com/surfraw/Surfraw/uploads/2de827b2786ef2fe43b6f07913ca7b7f/surfraw-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" -j1 install

	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="
51cdfb68bab701bce635a64ab3d5af669b2330c895180d01cca1c6f3c4005972ba4c573b693df59a2cc4fdb97d4fd11224bae500bbd4a17c3ab446de5241c9a0  surfraw-2.3.0.tar.gz
"
